package cn.btks.resultintegration.rule.service.impl;

import cn.btks.resultintegration.rule.pojo.Kfqsxb;
import cn.btks.resultintegration.rule.repository.KfqsxbRepository;
import cn.btks.resultintegration.rule.service.KfqsxbService;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lijun
 * @CompileUnit 测绘地理信息分院研发中心
 * @Date 2023/9/22 14:38
 */
@Service
public class KfqsxbServiceImpl implements KfqsxbService {

    @Autowired
    KfqsxbRepository repository;

    @Override
    public List<Kfqsxb> findAllByGMjjdm(String gmjjdm) {
        List<Kfqsxb> list = repository.findAllByGmjjdm(gmjjdm);
        return CollectionUtils.isNotEmpty(list) ? list : null;
    }
}
